<?php

class IndexController extends Zend_Controller_Action
{

  public function init()
  {
    /* Initialize action controller here */
  }

  public function indexAction()
  {
    /**
     * @var $actionTable Application_Model_DbTable_Actions
     */
    $actionTable = Engine_Api::_()->getDbTable('actions', 'application');
    $select = $actionTable->getActionsSelect();

    $this->view->paginator = $paginator = Zend_Paginator::factory($select);
    $paginator->setItemCountPerPage(10);
    $paginator->setCurrentPageNumber($this->_getParam('page'));

  }
}





